import React, { Component } from 'react';
import router from 'umi/router';
import ProDetail from '@/pages/components/Problem/ProblemPage/ProDetail';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';

class Problem extends Component {
  onModifyData = data => {
    router.push(`/careermanage/career/updatematerial?entryId=${data.busiId}&&activeKey=5`);
  };

  onViewDetails = data => {
    router.push(`/careermanage/career/detail?entryId=${data.busiId}&&activeKey=5`);
  };

  render() {
    return (
      <PageHeaderWrapper>
        {/* <ProDetail
          proBaseList={proBaseList}
          proFbList={proFbList}
          onFeedBack={this.proFeedBack}
          onCancelSign={this.cancelSign}
          onModifyData={this.modifyData} // 修改业务数据
          isModify={isModify}
        /> */}
        <ProDetail onModifyData={this.onModifyData} onViewDetails={this.onViewDetails} />
      </PageHeaderWrapper>
    );
  }
}

export default Problem;
